/**
 * echarts
 * https://echarts.apache.org/handbook/zh/basics/import
*/
import * as echarts from 'echarts/core'
import { SVGRenderer } from 'echarts/renderers'
import { LegendComponent, TitleComponent, PolarComponent, TooltipComponent,
  GridComponent } from 'echarts/components'

import { LineChart, BarChart, CandlestickChart, GaugeChart } from 'echarts/charts'

// 引入主题
import theme1 from './theme/theme'

echarts.use([
  SVGRenderer,
  TooltipComponent,
  GridComponent,
  LegendComponent,
  TitleComponent,
  LineChart,
  PolarComponent,
  CandlestickChart,
  BarChart,
  GaugeChart
])

// 注册主题
echarts.registerTheme('theme_1', theme1)

export default echarts
